Just cleaning up javascript