unit tests for build/*.js

wip