fixed type annotations for google closure compiler