Minor JS cleanups
Remove dependency on `I18n`. Allow the user to specify loading text via
a property. Fixes #1.