fix js bug that clears out form ids