NIfTI support for Javascript