Revision 7: JSHint and other cleanup