corrected setting variable for post #id
Example js for post using correct context