I tried this out and it works for me. I did have to remove the "+ the_hash" because it wasn't defined, but I assumed you just didn't include that code. How do you know it's not working? I'd suggest using something like FireFox with FireBug if you're not already.