This is basically the Google example. I don't really have a strong opinion in this case; usually you move scripts to the bottom to speed up loading.