Add IsInline parameter for insertDom function

Add inline option mode to insert an element inside node instead of outside node