Cleanup, and adding support for the log function (which was around in the JSTalk days)