fix js for revisions