Requestanimation

using request animation frame (with fps limitations), also added to it is the textchat basic implementation.