fix common.js exports 

this fix common.js export when using component.js
typeof module is a function so the current code fail to export the scroller 
and expose in the global namespace instead