pretty test.js code