Volume Function In Javascript Example Programs