Javascript fixes for IE8.

Conflicts:
	core/app/views/spree/shared/_routes.html.erb