Cannot Make Static Reference Error In Javascript