Cleans up javascript for batch ops control area layout