Refine codes of religons_image caption javascript and add an footer to stories view