Added more javascript unit tests