I want to relocate a page to the App Store and I get this error

I am a newb to coding so I am sure I am doing something basic wrong here. Please help!
CODE SAMPLE
// For full API documentation, including code examples, visit Velo API Reference - Wix.com
$w.onReady( function () { import wixLocation from ‘wix-location’;
// …
wixLocation.to(“The Wiggles - Fun Time Faces on the App Store”);
});
import wixLocation from ‘wix-location’;
has to go above the onReady function
Mike, thank you so much for getting back to me mate
I have tried this…what am I doing wrong…sorry dude
{ import wixLocation from ‘wix-location’;
// …
wixLocation.to(“The Wiggles - Fun Time Faces on the App Store”);
$w.onReady( function ()
Getting the same error message
//first we import the correct API
import wixLocation from ‘wix-location’;
//then we wait until the page is ready
$w.onReady( function () {
//then we re-direct to another page
wixLocation.to (" https://itunes.apple.com/app/id1385364625 ");
//then we end our onReady function
})
Mike, you legend - Thank YOU