// For full API documentation, including code examples, visit http://wix.to/94BuAAs
$w.onReady(function () {
//TODO: write your page related code here...
});
You already went through the worst part which is the pain building up to the root canal. Now here is what to do so we don't have to do the things listed above.