Fixes silly JS code. Still 16 passing tests

Thanks!