I noticed in the of my site (for work), there are a lot of and <
<
Have a look at using headjs. It is a nice lightweight library that will do this all for you.