use requirejs to load scripts