Simplify Google chart code and use autoloading for faster load time