All indentation to spaces, added JSCS checking.