simple javascript unit test