added onLoadG3M javascript function to be called from external HTML