improved the tmx loading code jansson and uthash