Hi Daniel,
So your starting point was the AJAX Framework Masthead iView or the classic framework page Masthead iView? I'd suggest that you copy the standard SAP AFP and then add your own masthead iView into that copy.
Then the next thing I would do is use the developer tools in IE or Chrome or Firefox to debug the page loading and see what is going on.
Hth,
Simon