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.
Could you move the javascript codes into different .js file, instead of keeping them in .erb files?