Removed deprecated type attribute from script tags.

Also now a more consistent use of script tags.