Added option to exclude baselib and added baselib.js