Added support to languages in script tags

The 'execScript' method accepts a second parameter 'language' to define the script language to use. This patch adds support to detect and use different languages on script tags.