updated web.xml, added functions js for retrieving entry and trip