wrapped javascript file into module pattern and edited function call in contents.js