Fix js tests and style