Added java script unit tests and scripts.