added code in custom.js for json requests from timesheet.html