finished new style, added json api for javascript charts
typooooooo