fixed js module path in fn