Fixed JS error 2