I need to be able to put text within my polyline like the embedded Google Maps does as you can see from the below screenshot...
Adding text to polylines is not (currently) supported by the Google Maps Javascript API v3. You will need to create your own custom overlays to implement that. (I doubt you can make the text "follow" the polyline along a curve easily)