Fixed error in js that stopped everything from working

oops