Added named events, so if you can JSON events, without having to use eval