fixed missing trailing semicolons
fix param name that closure compiler (and other things) don't like