Remove JS error (proper way).