convert javascript to parenscript