playing around with the spidermonkey api