Replace localhost with window.location.host
Update paths the VTK JavaScript files

VTK has move some of the JavaScript files.