Making sure that doc pickers are initted after google js api is loaded.
Removed some unused code.