Fixed missing semicolon and type declaration