Name full-screen-image setup function and call it

Fix bug in fullscreen image where JS doesn't load when you switch unit tabs in LMS.
@andy-armstrong, I'd trust your judgement more on this than mine. Does this method/technique seem okay with any standards you guys have around JS?