Expose chart name as prototype

Closes #301 
It was because function name was readonly but i made it better with my latest commit.

http://stackoverflow.com/a/11486495