source from : https://github.com/sql-js/sql.js/tree/master/examples/GUI