updated messages in js file