How to load and display 3d nifti file with slider in html page

Hello Forum members, I am trying to make a 3d Nifti image viewer using html, css & javascript, where I can load and view the Nifti MRI image slice by slice using a range slider. I am new to javascript and don’t know the steps to load and display the Nifti image in html page.
Your help will be highly appreciated.