Multiple component based on javascript and jquery