Added type tags to script elements in layout, to try to avoid weird mimetype problems from apache