Javascript test refactor

Use cleaner assertions, from chai-jquery