How to use the javascript singleton in the beta1 release of godot 3.0?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By stubbsy345
:warning: Old Version Published before Godot 3 was released.

Below is the code I use to assign the javascript singleton to a variable.

if Engine.has_singleton("JavaScript"):
	javaScript = Engine.get_singleton("JavaScript")

if javaScript:
	get_current_player()
	get_saved_file()

However in the new godot the singleton appears to be present whether I am using a HTML 5 export or not. So I am unable to play my game from the editor (as does not have the use of the javascript singleton but still appears to be assigning it). How has this changed in the beta1, it worked fine in alpha 2?