ensure that google apis library is loaded before app js uses it