Added event name to JS serialization, and fixed silly oversight-bug involving casting event location to a boolean.