Adding rsvp feature.
Extracting js to external js.