move spec files to before end of body tag

This speeds up the loading of the page a bit and also follows convention that most sites are using now.