Can I run bash commands from an Ubuntu HTML5 App?

What is the web server serving the apps? You can always put shell scripts in the /cgi-bin/ folder and invoke the URL.