mrhyde: added support for empty map
added extend_js test