using old createEvent syntax instead of DOM Level 4 Spec