browser compat issues on gfy-cat, restructured looping, triggers on ended event