Updated js for the php version of pages.