adding javascript post