fix a few jslint errors
===
braces
get rid of unnecessary statements