common tools about js