I'm only using jQuery here for jQuery UI draggable and resizable.