Realtime and Javascript interface fixes for 4.4

https://ukengames.atlassian.net/browse/UWARS-5637
https://ukengames.atlassian.net/browse/UWARS-5572