buttonInsert.js cleaned up, button now stays open when clicked

Made the button stay open when clicked, fixed some page styling
conflicts, and reorganized all of the code in buttonInsert.js. Drag
functionality is currently broken as it is being worked on.