changed gitignore, added base.js and export.js

What once was a mess, is now clean :-)