C# line into Javascript help

I downloaded this save and loading thing from the asset store and I have made a script for loading and saving but id prefer it to be in javascript since I don’t know anything about c#. I can make it all in javascript but the line where it saves and loads im not sure how to do it in java.

c# code

using UnityEngine;
using System.Collections;

public class SaveMenu : MonoBehaviour {

	void OnGUI()
	{

		if(GUI.Button(new Rect(10, 50, 150, 25), "Save"))
		{
			transform.GetComponent<AdvancedSaveSystem_SaveGO>().SaveGameObjects(1);
		}

		if(GUI.Button(new Rect(10, 80, 150, 25), "Load"))
		{
			transform.GetComponent<AdvancedSaveSystem_LoadGO>().RefreshGameObjects(1);
		}
	}
}

You can either rewrite it as:

 transform.GetComponent.<AdvancedSaveSystem_SaveGO>().SaveGameObjects(1);

(note the added period) or:

transform.GetComponent(AdvancedSaveSystem_SaveGO).SaveGameObjects(1);