adding the javascript post