Fixed uploads URL in javascript