I personally avoid executing js unless it's necessary, as it adds more complexity, and is noticeably more brittle.