Move helper functions to the closured global scope
Move helper functions to the closured global scope

mpopp75/html5test,NielsLeenheer/html5test,mpopp75/html5test,mpopp75/html5test,chiefcll/html5test,chiefcll/html5test,NielsLeenheer/html5test,chiefcll/html5test,NielsLeenheer/html5test