Espruino type definitions and helpers for Haxe