You can use jsdom to do all sorts of neat stuff.

Making client-side libraries work server-side

jQuery: [1] [2] [cmdline]

Highcharts: [1]