Created build system, now using node and browserify.
Also refactored the trendlines functionality.