I've had a look at your app and the problem was not in your template.
What you had already done is paste some template code into the
run as expected. I've removed the offending code and your template
Two points come from this:
1) Unfortunately, we are in a transitional state. With the last release,
we moved all viewers to a separate window. This puts them in separate java
script engines was so that you couldn't
lock your self out of the editor by having invalid code in your App.
However we have yet to move over the debugger and the run-time error
console, so any warnings you would have got in the viewer are not there yet. We hope
to have this fixed shortly.
in an App, but in normal use you don't have to.
3) One more thing, for everyone, in general, you don't need
to set a Parent App for your App, and you don't need to
set a Home Page. You would normally only set a Home Page
if you want to design your own navigation for your App.