Add support for js based scripting