Here is a JavaScript implementation of the AES block cipher that I found at Stack Overflow.
http://point-at-infinity.org/jsaes/
I was interested in this script, so I wrote a small test below. Note, it is generally not a good idea to use JavaScript for security. So this is more of an academic exercise and/or a debugging tool.