made code changes in .module and .js.tpl file