fix uncaught js exception in nchart dependency (anonymous method init)

in hopes of fixing sporadic login issue SWC-1660