JSHint fixes and config file