Add a few comments to VolumeManager js class

While I'm here make some minor fixes and remove deprecated func