Feature request issue #10 add function clear

I tested this in FF 20 with Firebug and Chrome 26 and it worked as
expected.  Issue provided the JS used http://js2coffee.org/ to just
translate it and it worked just fine.