Removed unnecessary semi-colons and changed variable declaration.