add $ for jquery selector variable
add support for baseUrl selector and move more graph logic into Telegraph