adding javascript sourcecode