Move side-effect "update modal" call out of util.coffee

- Was making tests break