Expand variable script, old browser check fixes