adding JS methods to display DB content on website