Added URL check for scripts and styles