updated ui.js to use sendFile rather than sendfile

Updated ui.js to no longer use the deprecated sendfile, but now uses sendFile