updated Js behaviour for micropost