A basic JavaScript engine