cleaning up javascript files