fixes failing js test and adds a js testing dependency