JS Error Event Interface (NCSU Team: ronak, shreya, sayali)

Created the interface for errorevent
(https://github.com/servo/servo/issues/3311)