Fixing double .js extension in extract