Fix the messed up JS!