replace instances of java format function with google closure format function