<!DOCTYPE html>
<html>
    <head>
    	<title>Hello World</title>
        <script>
            // Connected with local sqlite3 database   
            var fs = require('fs');
            // You must have to give full path of the sql.js file
            var SQL = require('/home/menon/eApp/sql.js'); 
            // You mus have to give full path of the .sqlite file
            var filebuffer = fs.readFileSync('/home/menon/eApp/data3.sqlite'); 
            // Load the db
            var db = new SQL.Database(filebuffer);
            var x = db.exec("select * from root_table where id = 1"); // Execute quary 
            console.log(x); // print x
            console.log('Hello World'); // hello world
        </script>
    </head>
    <body>
    	<!-- Your html code -->
    </body>
</html>