merged event PHP code into one file and re-wrote calendar.js