[JS] - Renamed funtion for readability