minor js tweaks

Added some comments (taken from midgetspy in another branch), fixed missed file for attr->prop for jquery 1.9.x.