only select .js files in make, fixes #342