Rewrite rating.js

As a part of the jQuery conversion process, this commit rewrites rating.js and includes usage of jGrowl instead of inline success/alert popup messages.