VID-924 updating js code to be more easily changed by user js

This change won't affect anything really other than it will make it easier for the harry potter admins to unbid a click event on the upload photos dialog.  They want to just have the browser follow the link to the image upload page. 

The JS they had in place broke after the right rail changes due to a race condition.