Fix example code syntax error in README.md

Also removed unnecessary semicolon.