refine urllib code

- Update the npm test command
- Remove the unused code
- Fix the debug message