Fixing modularization of the javascript interface