We tried to make DeviceScript closer in semantics to real JS (prototypes etc) and easier to port. You pay with performance.