updated transEndEventNames
use anonymous functions instead of strings as an argument to setTimeout() as @KrofDrakula suggested