Checks if JS or CSS file is already linked to from the DOM, if not appends it.