removes .js files that are not needed.