I would be sceptical using JavaScript to hide the address bar. It sounds great, but every browser would execute this differently. In theory is should work in a locked down environment where you got control of the browser used.