js has its own server mock (incomplete)