test http-server on javascript