Change jquery version to 1.7.0 and see that both buttons works.
focus using javascript focus
focus using jquery focus (not working)