added sharing functionality. removed jquery probs with Firefox