linked seperate ko an js functions