js added initFn