JS Class for working with google charts