try mock server in JavaScript but not yet work.