adds javascript post