Resolve JSHint errors