Use the latest version of api and init chooser when the DOM is fully loaded
Issue #1
Bump version
Make extensions optional in js (don't crash when none are provided)