style (src) fixes jsHint errors and typos