js code reorganize ...(intro require.js)