Add imagesloaded script, moved container vars into common.js