fixed a js error in home.html