Add parameter to getScriptTag and remove locale from api class