JS-Code cleanup 

This makes exactly the same.