There are of-course various projects extending the API which provide support. One is google-maps-utility-library-v3's StyledMarker which can be integrated to the demo you referred to as follows:
Add the library to your project:
Change the script embedded in the model as follows:
I Hope this provides you with the basics you need.
For best results, use the Firefox browser..