javascript unit test demo