Create popups.js

Scripts used in all three popups - edit study, view study, and user list.