Sets up jQuery UI and plugin for dragging