Used Object.create rather than new.

This is recommended by a number of people. The polyfill is taken from
Douglas Crockford's blog.
http://javascript.crockford.com/prototypal.html