registerJsFile signature changed

- registerJsFile signature was changed, now script position is specified through `options` param