Update this crappy JS