RegExp (?:non-capture) for perf, {}.toString().call() and add /js/ and /css/ directories