added js functions for post and posts_row click events

added js functions for post and posts_row click events