adding javascript stuff