Added an option to provide 'insertBefore', for inserting files before a specific element.