update gulpfile to lint js lib files. refactor js libs to pass lint