Make lints happy

Fix issues founded by JSCS and JSHint checks