Added Javascript code to get the care plan