Oops, fixed click on buttons and added missing jquery.