Added HTML5 support. Default is HTML5 and can call setHTML5(false) to revert to flash