adding javascript page