initiating javascript page