rather than add a callback to your head just do it as you were doing it but give it the name of "index"
HYPE.documents['index']......
This is if you only have 1 hype document and for preview. IMPORTANT When you upload it change the name to your document name "_flipMe" instead of "index".
NOTE** this is for internal calls only for external calls you would use the document name like you have.