Added JS function for Condition Recommendation Types