Added choice of inserting way into DOM

Added additional boolean preference to switch regular 'after' with
'before' method