How to use Chrome-based actions in standalone Chrome "app"?

Have you tried running the code in an HTML Orompt rather than a Web App?

I run a few PHP apps that way with no issues.