Server-side includes functionality exclusively using client-side JavaScript