improve W005 checker by properly parsing URL and checking filename

CC: @hnrch02 
What about [`globalstrict`](http://www.jshint.com/docs/options/#globalstrict)?