[FIX]Added a new file and changed the code according to jslint