Adding js file for json database calls