Format and change change extension to .js