bugfix in resourceInterface.js.coffee