Fix passing config from session.js to ScriptManager.js

Closes #431