Added js documents for drag function