removed $ for endings like .js and .css 

WordPress adds version Strings as Query Parameter like .js?ver=1.11.1
but with a $ in the regex this wouldn't match and get a longer caching period