HTML5 loop recorder