JSLint ran on a JS file and improvements made from that feedback