add $.each function
fix selector causing parse error in Firefox (fixes #38)
small view cleanup