many minor changes

* added call(function) method
* removed debug JsFileAPI method
* now using BlockType.<block> instead of ids
* added error handling