Added a placement option, fixed the compatibility bugs so it works with jquery 2.0