Removing JavaScript-ism (suggested by @abstractj)