[#363] Code cleanup

* improve javascript style 
* add proper copyright dates