A cross-platform implementation of observer pattern to Haxe