a mirror of Steve Hanov's QBASIC implementation in JavaScript