javascript auto-post now working