Fixes #382, allow using optimizer as JS object in rhino (and xpcshell)
snapshot