backing up to make adjustments in javascript