Renamed and moved some vars

Renamed and moved some global variables like g_Dom_, g_Coll_ and so on.
Moved jQuery Dom selection into it's own method