save dropped object name to javascript.