Javascript Variable Is Not Defined Error In Javascript 1757