updated js

all working on messages