time.fs: directly call the js function