some cleanup to js / server
add length limited queued msg list