Fixed some JSHint warnings and added the JSHint configuration file.