Added jacascript unit test