reorgnize the require js dependency