live upload jpg paperclip js