Updated server.js handlers to resolve full path rather than use relative path