added js unit test