There are significant problems, mostly in the script.js. This will be resolved. The problem being that things are returning before other things are done $.post()-ing.