Clean up assignment toolbar javascript