Only display filename in JS resolver errors/as scriptname

* The paths are internal ones
* Shortens error messages for JS resolvers so that they will most likely not 
   overflow anymore