added another JS function