Chrome apps do not like inline JavaScript within HTML.  Include initialization inside settings.js.