Finally I made it fit into one file using obj2jscad.js. It can be seen here.