refactoring testing of javascript. moved javascript file to my chatroom ...

...js file.