Add a simple build utility
Move test code to custom.js, and clear code