JS-Code cleanup 

This makes exaclty the same as before.
Merge pull request #11 from CodeInsider/patch-5

JS-Code cleanup