Changed order of js loading

message container not being updated