Upload images to imgur via JavaScript