check url and tag length + externalize js code from html