Update page script.

Updated script code style. Added devpage switch for the location hash.