Fixing a bunch of warnings introduced by the new js compiler/library.