Replace onTitle macro with getTitle function in html5 module
Extract macro from contents header to new page module