Fixed compatibility with jQuery 1.8+ and changed default button to OK