rename js var
support layer reordering in layer switcher