mesages posting with js automatically