move scripts to adi.js
remember language
change event order