change script tag and bugfix