Allowed Js code values to accept multiple events as an array