refactored js to coffeescript; added popovers