create the same global JS object in admin page