fix problems with write message to nodes and turn this function in an own class
remove unused javascript