Add javascript to post page