remove cwd for js:: protocol