extracted inline scripts to external files