GUI-1493: Move CSP-violating inline script on images landing page to external JS

Fixes https://eucalyptus.atlassian.net/browse/GUI-1493