reorganise js libraries.