Separate Repository() from utility.js to repository.js