I'm following a supposedly simple tutorial on how to create a rating system with Ajax, PHP and MySQL, but I've run into some problem with the Ajax code represented in the tutorial.

Tutorial is here.

Now, if you check out step number 4, it's supposed to pass my rating into a PHP file and then insert to the database. I've tested the PHP query and it work on that end, but the Javascript won't work.