Here's an interesting use of JavaScript and its callback features that shows how powerful the language can be if used to its full extent...
Read this interesting blog entry by Garett that shows how JS could exploit a vulnerability in the way Gmail works with all that AJAX stuff. Makes you wonder how security becomes a concern with such upcoming technologies. Thankfully Google promptly fixed the issue.
Read about this and a LOT more in Joe's blog.