Do not use inline script in order not to violate CSP for certified app. Otherwise you cannot execute these scripts on b2g-deskop and device. Refer to https://developer.mozilla.org/en-US/docs/Web/Apps/Packaged_apps#Types_of_packaged_apps and https://developer.mozilla.org/en-US/docs/Security/CSP/Introducing_Content_Security_Policy