Remove leftover code - fixes js error