Added possibility to choose if add a stylesheet at the end of the array or at the beginning