Fix reset clearing iOS JavaScript