added types to the script tags

now it can be run on servers....