task: added javascript module pattern and requirejs code.