Clean up javascript.