so, in the spirit of teaching-a-man-to-fish (yada, yada, yada) I'm not gonna tell you what you did wrong. Rather I'll tell you how you can see what you did wrong.
Open your app in Firefox, open Firebug, and go to the Console window. JavaScript errors are reported there.
(hint: javascript is case sensitive).
Cheers
Bruce