Added javascript function to Item show form template