Added a functional JS section