Converting to requirejs
Update pageId