remove .js extension from paths