I use google code to defer loading javascript (google pages)
But I have some inline javascripts such as:
try this http://w3schools.com/jquery/default.asp. you can easily do that.