Fixed JsLint Errors and some typo