allow mode specification in jscode form element
defaults to javascript
error in form shortcut