use requirejs to frontend