Do not add .js for paths config with querystring (hashtags too)

Related to https://github.com/jrburke/requirejs/issues/394

On top of '?', the url is tested for hashtags '#'. 
The use of hashtags allow passing parameters while preserving client-side cacheability of the js file.