Dashboard refacto with requirejs