fix .js.map not found

Hi,

I manage to fix the issue. Please take a look and merge it if you think it's useful.

Thanks