Fix silly syntax mistakes. JS is not python.