Replaced use of String.replace with simple String.substring usage

This is my fix for an issue I had when using gulp-imports with jQuery. 

The string "$&" appears on line 848 of jquery.js v1.11.1

$& is a special operator for the String.replace function and breaks the intended use.

I have used the index of the match and the length of the matched string to replace it.