single javascript file working