Update ScriptEngine.java

added code in to add Action Listeners