add requirejs support of ssa generator