If this is the first time you're using transition you should declare it with var as well. Same applies to config below.