integrated the required Javascript library for the code to function

Courtesy: jQuery foundation