Update index with jQuery UI and angular-ui-sorteable