adds javascript file to project