created a annoymous function to grab value of url in postItem template