Avoid undefined JS error. props jorbin.