Update realtime.js

Added a check for the string length.