How To Do Unit Testing In Javascript