Extracted the javascript code into ItaModule.js