Pages: Fixing urls and removing extra JS