Moved surface.js to server folder