Be able to add node as first child and add tests for addNode

I need to add node as first child and I think it should be a supported option
jQuery style guide recommends to list unassigned vars first, before assignment.