Moving pages to subfolder. Messing around with js and ajax