Javascript optimalization

panel css3 transition
overlayer width and height calculation