chart entry re-architected to use javascript module/closure pattern