first cut over with passing tests from twitter-bootstrap-rails code