tweaks to JS to wait until all the deferreds are finished before cams code is required in, hopefully speed up load a bit