adding js extension to filename