some js for tools menu