change assets/word.js to self-exectuting function