change to object oriented style,remove require.js