Move toolbar installation code to toolbar.js