tree to jquery

I just converted the mootols to jquery for now