Advanced Media Element Scripting in HTML5 Media