Changes to:
nightcharts
using jquery deferred instead of when