Added Spec files to make JSLINT and fixed all errors in these files