ts() shoudn't be used in an inline script.