Better html5 implementation (respects debug and browser settings in config.yaml)