Updates pks

Updated jquery, and replaced live with on.

Added functionality to close dropdown when already visible.