refactor options in js land