Since I'm a nice guy, I will help you.
The reason you don't get any output is because the script encounters an error and it terminates the script. Javascript errors, by them self, are very ambiguous and sometimes hard to detect. Therefore, you really need to get some debug tools. I HIGHLY recommend the Firebug plugin for Firefox. It is an excellent tool for Javascript/AJAX developers. You can step through the code line-by-line, setup breakpoints, find errors, make on-the-fly changes...etc.
Your error is that you have mixed the case of your hoursWorked variable, as well as some others. Those aren't the only errors, but I'll let you try to figure the rest out.