created structure for idea to make dedicated event objects. Pulling javascript generation into separate class.