Improved random Imgur ID generation

Referenced underscore.js and rewrote the random ID
generation function using a more functional and terse
approach.