added example and required js libraries