the script anchor should be with type=”text/javascript” and not text.