add error message
retrofit project to module system

> will use browserify for concat/bundling
(fix incomplete previous commit)