Finally have a working version with requirejs