Added jscs

There are a lot of errors indicated by jscs, which are due to bugs in
jscs.