fix js, change schema for paperclip