renaming file to include .js extensions