Move model out of util.js into its own file.