add handler to coffeescript so x-editable can always be updated