Added a print function

This little piece of javascript i found looking in the webkit source
prints stuff