Some errors implementing the js in ejs to display database hits