title: Migrating js file from prototype to jQuery does not work
body: <p>I'm migrating files from prototype to jQuery.</p>
  
  <p>prototype:</p>
  
  <pre><code>function hideEditableMarkers() {
     $$('.edit_marker').each(function(el) {
    el.hide();
  });
     $$('.show_marker').each(function(el) {
      el.show();
      });
  }
  
  Event.observe(window, 'load', hideEditableMarkers);
  </code></pre>
  
  <p>jQuery:</p>
  
  <pre><code>function hideEditableMarkers() {
    jQuery('.edit_marker').each(function(el){
      el.hide();
      });
  
    jQuery('.show_marker').each(function(el){
      el.show();
      }); 
  }
  
  jQuery(document).ready(hideEditableMarkers());
  </code></pre>
  
  <p>I don't know why it does not work.</p>