A simple interpreter written in javascript