fix for requirejs and bootstrap loading early, sparked initial gallery