short code for google maps v3 with object oriented approach