Updated according to interface changes in google closure library.