script no longer breaks browser