Update autobahn.js

applying a fix which will potentially cause some people to cry and bang their head against the wall while they
can't figure out that the original problem was caused by a version of the Prototype library.

Upgrading Prototype is not always possible, this makes this library compatible with older code.
Merge pull request #17 from robertkraig/master

Make autobahnJS library compatible with older code.