Fixed JSLinting issues and added comment block