Avoid executing same code twice, not only because it causes JS errors, but also because it's stupid