Improve the RequireJS check.