attempting to put post content in js variable