<!DOCTYPE html>
<html>
<head>
<title></title>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>$(document).ready(function(){ alert('ready')});</script>
<script>alert('script in head');</script>
</head>
<body>
<script>alert('script in body');</script>
<script type="text/javascript">
try{jQuery.ready();}catch(e){}
try{
$(document).ready(function(){alert('ready');
var ac = 0;
});
}catch(e){}
</script>
</body>
<script>alert('script after body');</script>
</html>
<script>alert('script after html');</script>