Code reorganization
Js2Api divided in several files, one per module
Working in Firefox, in Chrome throws "Origin null is not allowed by Access-Control-Allow-Origin" exception