some js tools functions rotate drag resize