clean up javascript dir
add sortable priority order
add sortable to priority view
clean commented code up