Split JS into common.js and connections.js;
Added a tool to count lines of code