Some js unit tests