cleaned up javascript files