BUG: make package work when mpld3 JS global is set

In response to #153