Moved sortable from foo.js to appropriate controllers