Fixed error in JS that broke everything