updating core.js with system/staff crud