Expanded startup script and added forEach polyfill.