use requirejs to run in browser