Convert gulpfile to coffee and fix unitTest