split up main.js
rename to thing.type.js style