commented and cleaned up display.html.erb javascript