Trying cordova.define with javascript interface