removed whitespaces & fixed some jsLint errors.