Sudoable: convert to angularJS