Upload to imgur via js, removing php curl requirements