Made stdio more C-like

sprintf now included by including stdio, had to include sprintf-js source inside this project due to lack of require() method in included JS. May be able to fix at a later date.