Adding js var for the created chart