Wrapper for working with the imgur API in javascript