Resolve errors introduced with JSHint