I have tried adding google basemap using this example Add Google Basemap via Javascript bt this example is not working.
the links mentioned in this example are giving 404 error.