Adds code to create chart element in polymer and uses that element in other file