Error Empty Block Statement In Javascript