Added Javascript Interface.
Username in preferences.