Add javascript

javascript function to list all database information