JavaScript utility to cue, seek, or cycle items