Update build.js

Add amd also to build.js