CB-02 move main.js to scripts directory