Move the insert object chooser part from library to js/activity.js