fix issue where renderMenu may be called before page is fully rendered
Merge pull request #26 from ordrin/dev_ricky

fix issue where renderMenu may be called before page is fully rendered