added back old broken javascript to fix