Fix user settings dialog on Core API

- Separate compiled js into components.js and common-header.js