Refactored server.js
Refactoring touch.js