Based on your exception, I'd say your javascript isn't getting access to the class file. Check your pathing, permissions, and spelling/case.

edit:

I think I might see your problem... in calling...