E1450. UI change for assignment view

I submitted pull request 2 days ago, but updated some codes after that. Let me know if I need to submit a pull request again.
The javascript should not be in erb files.