failed attempt at using jquery, hah
switched to jquery UI for dragging, will revisit later. For now, need to implement states and layers