Improve coding style of JS unit test files