Move tool functions back to gridEdit.html again.