Add setImmediate into example
Add Maps API error handling