Replaced stray ; with , in var decleration and added missing space after function keyword