Support for Prototype lib

Modified for use within an application that
utilises the [prototype](http://prototypejs.org)
javascript library.