initial implementation: compiles, but produces JS code instead of Pascal