refactored sparkline & sparklinePlus, added a test page

refactored sparkline & sparklinePlus, added a test page