Added javascript unit tests
Added more js unit tests