Move chart code to common.js

Created by  Eelco Dolstra  on March 25, 2016
OMSOKS2A7NLS4LX6J4ZW5BUKIN2P4YXI2Q7DAFY26AYIECZZEJMAC
Change contents