Changed RegExp that checks whether requirejs should add ".js" to module path.