Working on <script src="...">, necessary refactorings