FIX: Removed <!DOCTYPE html> header in pinRegister and pinRequest, otherwise the JSON output could not be parsed by the client.