index.js: fix missed options in actions

`options` is a local variable, so it's properties shall be copied into `actions`, otherwise options get lost.