improves hookups javascript, modifies some tests