fixes extra character in dat.js lib & poblem with end of file in main.js