Fix javascript file location patching

This fixes the symptoms described [here](https://github.com/montagejs/mop/issues/45)