I found a solution that works pretty well (My HTML5 Application Cache Manifest is caching everything), it was listed here.
It talks about using an iFrame. By putting the html cache command in the iframe and just hiding the iframe on the index.php page I am able to cache all the other files and even create the fallback file correctly. It's kind of a hack but it gets the job done :).