start of simplifing plotting code
added ability to provide multiple lines to line plot
Merge branch 'simplify_js' into feature